package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库管理对象 ck
 * 
 * @author GGJ
 * @date 2024-05-13
 */
public class Ck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库位号 */
    private String id;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String name;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String model;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Long quantuty;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String chief;

    /** 目的地/使用单位 */
    @Excel(name = "目的地/使用单位")
    private String whereabouts;

    /** 出库分类（领料出库0，销售出库1） */
    @Excel(name = "出库分类", readConverterExp = "领=料出库0，销售出库1")
    private Long detail;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setQuantuty(Long quantuty) 
    {
        this.quantuty = quantuty;
    }

    public Long getQuantuty() 
    {
        return quantuty;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setChief(String chief) 
    {
        this.chief = chief;
    }

    public String getChief() 
    {
        return chief;
    }
    public void setWhereabouts(String whereabouts) 
    {
        this.whereabouts = whereabouts;
    }

    public String getWhereabouts() 
    {
        return whereabouts;
    }
    public void setDetail(Long detail) 
    {
        this.detail = detail;
    }

    public Long getDetail() 
    {
        return detail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("model", getModel())
            .append("quantuty", getQuantuty())
            .append("time", getTime())
            .append("chief", getChief())
            .append("whereabouts", getWhereabouts())
            .append("detail", getDetail())
            .append("remark", getRemark())
            .toString();
    }
}
